<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page
	import="java.util.*,domain.entity.SysMenu,service.system.MenuService"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path;
	HttpSession session1 = pageContext.getSession();
	Map<String, String> dic = (Map<String, String>) session1.getAttribute("ControllerActions");
	ServletContext context = pageContext.getServletContext();
	List<SysMenu> sysMenus = (List<SysMenu>) context.getAttribute("menus");
	for (SysMenu sysMenu : sysMenus) {
%>
<div title="<%=sysMenu.getName()%>" data-options="collapsed:false">
	<ul class="easyui-tree">
		<%
			List<SysMenu> threemenu = MenuService.GetThreeChildMenuByParent(sysMenu.getMenuId());
				if (threemenu.size() > 0) {

					for (SysMenu fourmenu : threemenu) {
						if (dic.containsKey(fourmenu.getUrl() + "_POST")) {
		%>
		<li><a href="javascript:void(0);" style="color: rgb(83, 82, 82)"
			onclick="openUrl('<%=(basePath + fourmenu.getUrl())%>','<%=fourmenu.getName()%>')"><%=fourmenu.getName()%></a></li>
		<%
			}

					}

				}
		%>
	</ul>
</div>

<%
	}
%>
